{include file="public/header" title="管理员列表" /}
<div class="tpl-page-container tpl-page-header-fixed">
    <div class="tpl-left-nav tpl-left-nav-hover">
        {include file="public/sidebar" /}
    </div>
    <div class="tpl-content-wrapper">
        <ol class="am-breadcrumb">
            <li><a href="{:url('admin/index')}" class="am-icon-home">首页</a></li>
            <li><a href="{:url('user/list')}">设置</a></li>
            <li class="am-active">管理员列表</li>
        </ol>
        <div class="tpl-portlet-components">
            <div class="portlet-title">
                <div class="caption font-green bold">
                    <span class="am-icon-code"></span> 管理员列表
                </div>
                <div class="tpl-portlet-input tpl-fz-ml">
                    <div class="portlet-input input-small input-inline">
                        <div class="input-icon right">
                            <i class="am-icon-search"></i>
                            <input type="text" class="form-control form-control-solid" placeholder="搜索...">
                        </div>
                    </div>
                </div>
            </div>
            <div class="tpl-block">
                <div class="am-g">
                    <div class="am-u-sm-12">
                        <form class="am-form">
                            <table class="am-table am-table-striped am-table-hover table-main">
                                <thead>
                                    <tr>
                                        <th class="table-id">ID</th>
                                        <th class="table-name">用户名</th>
                                        <th class="table-mobile">手机</th>
                                        <th class="table-email">邮箱</th>
                                        <th class="table-date">注册时间</th>
                                        <th class="table-set">操作</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    {volist name="list" id="v"}
                                    <tr>
                                        <td>{$v.id}</td>
                                        <td>{$v.username}</td>
                                        <td>{$v.mobile}</td>
                                        <td class="am-hide-sm-only">{$v.email}</td>
                                        <td class="am-hide-sm-only">{$v.create_time}</td>
                                        <td>
                                            <div class="am-btn-toolbar">
                                                <div class="am-btn-group am-btn-group-xs">
                                                    <botton data-href="{:url('admin/delete',['id'=>$v['id']])}" class="confirm-delete am-btn am-btn-default am-btn-xs am-text-danger am-hide-sm-only"><span class="am-icon-trash-o"></span> 删除</botton>
                                                </div>
                                            </div>
                                        </td>
                                    </tr>
                                    {/volist}
                                </tbody>
                            </table>
                            <div class="am-cf">
                                <div class="am-fr">
                                    {$list->render()}
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="am-modal am-modal-confirm" tabindex="-1" id="deleteModal">
        <div class="am-modal-dialog">
            <div class="am-modal-hd">Yi He</div>
            <div class="am-modal-bd">
                你，确定要删除这条记录吗？
            </div>
            <div class="am-modal-footer">
                <span class="am-modal-btn" data-am-modal-cancel>取消</span>
                <span class="am-modal-btn" data-am-modal-confirm>确定</span>
            </div>
        </div>
    </div>
</div>
{include file="public/footer" /}